public class PrintNameThread implements Runnable {

	
	private String name;
	
	
	public PrintNameThread(String name) {
		setName(name);
	}

	@Override
	public void run() {
		System.out.println("My name is " + getName());

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}